package com.iflytek.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.iflytek.common.Result;
import com.iflytek.dto.AddressDTO;
import com.iflytek.dto.PageDTO;
import com.iflytek.model.Address;
import com.iflytek.vo.AddressVO;
import com.iflytek.vo.PageVO;

import java.util.List;

/**
 * <p>
 * 收货地址 服务类
 * </p>
 *
 * @author h_t
 * @since 2023-09-23
 */
public interface AddressService extends IService<Address>   {


    Result<AddressVO> findById(Integer id);

    Result<AddressVO> deleteById(Integer id);

    Result<PageVO<AddressVO>> findPage(PageDTO<AddressDTO> dto);

    Result<Boolean> updateAddress(AddressDTO dto);

    Result<Boolean> saveAddress(AddressDTO dto);

    Result<List<AddressVO>> findAll();
}